﻿@model EvincePayroll.Data.GalleryData
@{
    var message = ViewBag.Message;
    
    using (Html.BeginForm("AddGallery", "Home", FormMethod.Post, new { id = "validate1", enctype = "multipart/form-data" }))
    { 
    <div class="grid_10">
        <div class="box round first">
            <h2>
                Add Gallery</h2>
            <div class="block">
            @if (message != null && message == false)
                        {
                            <div class="message error">
                                <h5>
                                    Error</h5>
                                <p>
                                    Image Not Uploaded Successfully!
                                </p>
                            </div>
                    
                        }
                        @if (message != null && message == true)
                        {
                            <div class="message success">
                                <h5>
                                    Success</h5>
                                <p>
                                    Image Uploaded Successfully!<br />
                                </p>
                            </div>
                    
                        }
                <div id="chart1">
                    <div class="block">
                     

                        <ul style="border: 1px solid gray;">
                            <li id="li_1">
                                <label class="description" for="element_2">
                                    Name
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.Name, new { id = "name", name = "naem", @class = "element text medium requiredField", type = "text", maxlength = "255", value = "" })
                                </div>
                                <br />
                                <br />
                            </li>
                            <li id="li_2">
                                <label class="description" for="element_2">
                                    Upload
                                </label>
                                <br />
                                <div>
                                    <input id="galleryImage" name="galleryImage" class="element file" type="file" />
                                </div>
                                <br />
                                <br />
                            </li>
                            <li id="li_3">
                                <label class="description" for="element_2">
                                    Is Active
                                </label>
                                <br />
                                <div>
                                    <input id="IsActive" name="isActive" class="element file" type="checkbox" />
                                </div>
                                <br />
                                <br />
                            </li>
                            <li id="li_4">
                                <br />
                                <button class="btn btn-orange" runat="server">
                                    Submit</button>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <button class="btn btn-orange" id="btnCancel">
                                    Cancel</button>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    }
}
